package com.zlll.winner.business.service.mall;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.mall.MallSeckillManage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlll.winner.business.vo.mall.MallSeckillVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品秒杀 管理 服务类
 * </p>
 *
 * @author qsx
 * @since 2019-10-08
 */
public interface IMallSeckillManageService extends IService<MallSeckillManage> {

    Object getSeckillList();

    IPage<MallSeckillVo> getMallSeckillByCondition(Long time,String goodsName,Integer pageSize,Integer pageNo);

    MallSeckillManage add(Long startTime, Long endTime, List<Map<String,Object>> externals,Long userId);

    /**
     * 同个时间内是否有重复
     * @param startTime
     * @param endTime
     * @return
     */
    List<MallSeckillManage> isrepeat(Long startTime,Long endTime);

    MallSeckillManage getMallSeckillManageById(Long id);

    MallSeckillManage edit(Long id,Long startTime, Long endTime, List<Map<String,Object>> externals,Long userId);

    Boolean deleteMallSeckillManage(String seckiilNo,Long userId);
}
